package com.auth.manage.base.responce;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@NoArgsConstructor
@AllArgsConstructor
@Builder  // 本质上是生成一个全参构造器
@Data
public class BaseResponce implements Serializable {
    private static final long serialVersionUID = 1L;

    private Boolean success;
    private String responceCode;
    private String responceMessage;

    public static BaseResponce success(){
        return BaseResponce.builder().success(true).build();
    }
}